Program to arrange numbers in ascending order